package pub.guoxin.oops.common.protocol.builder;

import lombok.Getter;
import pub.guoxin.oops.common.protocol.entity.map.DataProtocolCodeMap;
import pub.guoxin.oops.common.protocol.entity.map.DataProtocolMap;

/**
 * 数据码索引表(code), 枚举类须实现该类
 * <p>
 * Created by guoxin on 18-2-25.
 */
@Getter
public class DataProtocolCodeRegister implements DataProtocolRegister<String, DataProtocolCodeRegister> {

    private DataProtocolMap<String> register = DataProtocolMap.newDataProtocolMap();

    @Override
    public DataProtocolCodeRegister register(Integer name, String value) {
        register.register(name, value);
        return this;
    }


}
